<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="system.config.HHConfig" %>
<%@page import="java.util.List, java.util.Map" %>
<jsp:include page="./common/header.jsp" flush="true" />
</head>
<body id="page1" onload="new ElementMaxHeight();">
    <!-- header -->
    <div id="header">
         <div class="container">
             <div class="row-1">
                <div class="logo"><a href="<%=HHConfig.SITE_URL%>/index.jsp"><img alt="" src="<%=HHConfig.SITE_URL + "/" + HHConfig.THEME_PATH%>/default/images/logo.jpg" /></a></div>
                <ul class="top-links">
                   <li><a href="<%=HHConfig.SITE_URL%>/index.jsp"><img alt="首页" src="<%=HHConfig.SITE_URL + "/" + HHConfig.THEME_PATH%>/default/images/top-icon1.jpg" /></a></li>
                   <li><a href="#"><img alt="" src="<%=HHConfig.SITE_URL + "/" + HHConfig.THEME_PATH%>/default/images/top-icon2.jpg" /></a></li>
                   <li><a href="<%=HHConfig.SITE_URL + "/" + HHConfig.THEME_PATH%>/default/send_email.jsp"><img alt="发送邮件" src="<%=HHConfig.SITE_URL + "/" + HHConfig.THEME_PATH%>/default/images/top-icon3.jpg"/></a></li>
                </ul>
             </div>
             <div class="row-2">
                <!-- nav box begin -->
                <div class="nav-box">
                    <div class="left">
                        <div class="right">
                            <ul>
                                <li><a href="<%=HHConfig.SITE_URL %>/index.jsp" class="first-current"><em><b>首页</b></em></a></li>
                                <li><a href="<%=HHConfig.SITE_URL %>/index.jsp/joinus"><em><b>招商加盟</b></em></a></li>
                                <li><a href="<%=HHConfig.SITE_URL %>/index.jsp/news"><em><b>最新动态</b></em></a></li>
                                <li><a href="<%=HHConfig.SITE_URL %>/index.jsp/proinfo"><em><b>产品展示</b></em></a></li>
                                <li><a href="<%=HHConfig.SITE_URL %>/index.jsp/case"><em><b>案例陈列</b></em></a></li>
                                <li><a href="<%=HHConfig.SITE_URL %>/index.jsp/contactus" class="last"><em><b>联系我们</b></em></a></li>
                             </ul>
                        </div>
                    </div>
               </div>
               <!-- nav box end -->
            </div>
        </div>
    </div>
   <!-- content -->
   <div id="content">
      <div class="container">
      	<!-- main-banner-big begin -->
         <div class="main-banner-big">
         	<div class="inner">
            	<h1>我是一个XYRJ-JAVA-Framework的Demo站</h1>
               <a href="#" class="button">了解更多</a>
            </div>
         </div>
         <!-- main-banner-big end -->
         <div class="wrapper">
         	<div class="col-1 maxheight">
            	<!-- box begin -->
               <div class="box maxheight">
                  <div class="border-top maxheight">
                     <div class="border-right maxheight">
                        <div class="border-bot maxheight">
                           <div class="border-left maxheight">
                              <div class="left-top-corner maxheight">
                                 <div class="right-top-corner maxheight">
                                    <div class="right-bot-corner maxheight">
                                       <div class="left-bot-corner maxheight">
                                          <div class="inner">
                                             <h2>最新动态</h2>
                                             <ul class="list1">
                                             	<% 
                                             		List<Map> indexNewsList = (List<Map>)request.getAttribute("indexNewsList");
                                             		
                                            		for(int i = 0; null != indexNewsList && i < indexNewsList.size() ; i++) {
                                            			Map newsMap = indexNewsList.get(i);
                                             	%>
                                             	<li>
                                                   <p>
                                                   		<%=newsMap.get("newsarticle_name")+":"+newsMap.get("description") %>
                                                   </p>
                                                   <a href="<%=HHConfig.SITE_URL %>/index.jsp/news/detail?id=<%=newsMap.get("newsarticle_id")%>">阅读详细</a>
                                                </li>
                                                <%} %>
                                             </ul>
                                             <a href="<%=HHConfig.SITE_URL %>/index.jsp/news/index" class="button"><em><b>查看更多</b></em></a>
                                          </div>
                                       </div>
                                    </div>
                                 </div>
                              </div>
                           </div>
                        </div>
                     </div>
                  </div>
               </div>
               <!-- box end -->
            </div>
            <div class="col-2 maxheight">
            	<!-- box begin -->
               <div class="box maxheight">
                  <div class="border-top maxheight">
                     <div class="border-right maxheight">
                        <div class="border-bot maxheight">
                           <div class="border-left maxheight">
                              <div class="left-top-corner maxheight">
                                 <div class="right-top-corner maxheight">
                                    <div class="right-bot-corner maxheight">
                                       <div class="left-bot-corner maxheight">
                                          <div class="inner">
                                             <h2>产品展示</h2>
                                             <ul class="list2">
                                             	<%
                                             		List<Map> proinfoList = (List<Map>)request.getAttribute("indexProInfoList");
                                             		
                                             		for(int i = 0;null!=proinfoList && i<proinfoList.size();i++){
														Map map = proinfoList.get(i);                                             			
                                             	%>
                                             	<li>
                                                	<img alt="" src="<%=HHConfig.SITE_URL%>/<%=map.get("image_path") %>" height="150"/>
                                                   <h5><a href="<%=HHConfig.SITE_URL%>/index.jsp/proinfo/detail?id=<%=map.get("proinfo_id") %>"><%=map.get("proinfo_name") %></a></h5>
                                                   <%=map.get("description") %>
                                                </li>
                                                <%} %>
                                             </ul>
                                             <a href="<%=HHConfig.SITE_URL %>/index.jsp/proinfo" class="button"><em><b>查看更多</b></em></a>
                                          </div>
                                       </div>
                                    </div>
                                 </div>
                              </div>
                           </div>
                        </div>
                     </div>
                  </div>
               </div>
               <!-- box end -->
            </div>
            <div class="col-3 maxheight">
            	<!-- box begin -->
               <div class="box maxheight">
                  <div class="border-top maxheight">
                     <div class="border-right maxheight">
                        <div class="border-bot maxheight">
                           <div class="border-left maxheight">
                              <div class="left-top-corner maxheight">
                                 <div class="right-top-corner maxheight">
                                    <div class="right-bot-corner maxheight">
                                       <div class="left-bot-corner maxheight">
                                          <div class="inner">
                                             <h2>案例陈列</h2>
                                             <ul class="list2">
                                             	<%
                                             		List<Map> caseList = (List<Map>)request.getAttribute("indexCaseList");
                                             		for(int i =0 ;null!= caseList && i<caseList.size(); i++){
                                             			
                                             			Map map = caseList.get(i);
                                             	%>
                                             	<li>
                                                	<img alt="" src="<%=HHConfig.SITE_URL%>/<%=map.get("image_path") %>" height="150"/>
                                                   <h6><a href="<%=HHConfig.SITE_URL %>/index.jsp/case/detail?id=<%=map.get("case_id") %>"><%=map.get("case_name") %></a></h6>
                                                </li>
                                                <%} %>
                                             </ul>
                                             <a href="<%=HHConfig.SITE_URL %>/index.jsp/case" class="button"><em><b>查看更多</b></em></a>
                                          </div>
                                       </div>
                                    </div>
                                 </div>
                              </div>
                           </div>
                        </div>
                     </div>
                  </div>
               </div>
               <!-- box end -->
            </div>
         </div>
      </div>
   </div>
   <!-- extra-content -->
   <div id="extra-content">
     	<div class="container">
      	<div class="wrapper">
         	<div class="col-1 maxheight">
            	<!-- box begin -->
               <div class="box maxheight">
                  <div class="border-top maxheight">
                     <div class="border-right maxheight">
                        <div class="border-bot maxheight">
                           <div class="border-left maxheight">
                              <div class="left-top-corner maxheight">
                                 <div class="right-top-corner maxheight">
                                    <div class="right-bot-corner maxheight">
                                       <div class="left-bot-corner maxheight">
                                          <div class="inner">
                                             <h2><a href="<%=HHConfig.SITE_URL %>/index.jsp/contactus">关于我们</a></h2>
                                             <img class="img-indent" alt="" src="<%=HHConfig.SITE_URL + "/" + HHConfig.THEME_PATH%>/default/images/image_87x66.gif" />
                                             	关于我们关于我们关于我们关于我们关于我们关于我们关于我们关于我们关于我们关于我们关于我们关于我们关于我们关于我们关于我们关于我们
                                             <div class="clear"></div>
                                          </div>
                                       </div>
                                    </div>
                                 </div>
                              </div>
                           </div>
                        </div>
                     </div>
                  </div>
               </div>
               <!-- box end -->
            </div>
            <div class="col-2 maxheight">
            	<!-- box begin -->
               <div class="box maxheight">
                  <div class="border-top maxheight">
                     <div class="border-right maxheight">
                        <div class="border-bot maxheight">
                           <div class="border-left maxheight">
                              <div class="left-top-corner maxheight">
                                 <div class="right-top-corner maxheight">
                                    <div class="right-bot-corner maxheight">
                                       <div class="left-bot-corner maxheight">
                                          <div class="inner">
                                             <h2>联系我们</h2>
                                             <img class="img-indent" alt="" src="<%=HHConfig.SITE_URL + "/" + HHConfig.THEME_PATH %>/default/images/image_87x66.gif" />
                                             <h5><a href="http://xyrj.hhtc.edu.cn">怀化学院软件基地</a></h5>
                                             	如果你也有一份对代码的无限热情，请你点击下面的按钮，期待你的加入。
                                             <div class="clear"></div>
                                          </div>
                                       </div>
                                    </div>
                                 </div>
                              </div>
                           </div>
                        </div>
                     </div>
                  </div>
               </div>
               <!-- box end -->
            </div>
         </div>
      </div> 
   </div>
   <!-- footer -->
   <jsp:include page="./common/footer.jsp" flush="true" />
</body>
</html>